package com.bcu.cn.onlineexamsystem.adminmanage.service;

import com.bcu.cn.onlineexamsystem.adminmanage.entity.AdminUser;
import java.util.List;

public interface AdminUserService {
        List<AdminUser> getAllUsers();
        AdminUser getUserById(String userId);
        boolean createUser(AdminUser user);
        boolean updateUser(AdminUser user);
        boolean deleteUser(String userId);
        List<AdminUser> searchUsers(String keyword, String role);

        // 数据大屏统计
        int countAllUsers();
        int countByRole(String role);
        int countAllClasses();
        int countUsersByDate(String dateStr);

        // 获取所有班级
        List<com.bcu.cn.onlineexamsystem.exammanage.entity.Class> getAllClasses();

        // 老师分配相关
        List<Long> getTeacherCourseIds(String teacherId);
        List<Long> getTeacherClassIds(String teacherId);
        void assignTeacherCourses(String teacherId, List<Long> courseIds);
        void assignTeacherClasses(String teacherId, List<Long> classIds);

        // 学生分配相关
        List<Long> getStudentCourseIds(String studentId);
        void assignStudentCourses(String studentId, List<Long> courseIds);
}